package util
{
	import mx.controls.Alert;
	
	import openspace.OpenSpaceContainer;
	
	import spark.components.NavigatorContent;
	import spark.components.SkinnableContainer;
	
	
	public class FuncPageBaseContainer extends SkinnableContainer
	{
		[Embed(source="assets/loadicon.swf")]
		private var buzzyIcon:Class;
		
		
		public function FuncPageBaseContainer()
		{
			super();
		}
		public function doExportExcelOption():void
		{
			Alert.show("当前页没有实现导出功能!","Excel导出");
		}
		public function doHelp():void
		{
			this.FireHelp("待添加","../help/本功能帮助待添加.swf");
		}
		private var navContent:NavigatorContent = null;
		private var spaceContainer:OpenSpaceContainer = null;
		public function SetSpaceContainer(cont:OpenSpaceContainer):void
		{
			this.spaceContainer = cont;
		}
		public function GetSpaceContainer():OpenSpaceContainer
		{
			return spaceContainer;
		}
		
		public function SetBuzzyRun(buzzy:Boolean):void
		{
			if(navContent!=null)
			{
				if(buzzy)
				{
					navContent.icon = buzzyIcon;
				}
				else
				{
					navContent.icon = null;
				}
			}
		}
		public function FireHelp(title:String,helpStr:String):void
		{
			spaceContainer.FireShowHelper(title,helpStr);
		}
		
		public function SetNavContent(cont:NavigatorContent):void
		{
			this.navContent = cont;
		}
		public function GetNavContent():NavigatorContent
		{
			return navContent;
		}
		public function isOwnClosable():Boolean
		{
			return false;
		}
	}
}